<template>
    <div class="Q_Asession">
        <title-back title="考生问答"></title-back>
        <div class="unsolved">
            <p class="unsolved_title">未解答的问题：1个</p>
            <div class="dis-flex unsolved_text" v-for="(item, index) in unsolved" :key="index">
                <p>问：{{item.issue}}</p>
                <p><button>回答</button><button>忽略</button></p>
            </div>
        </div>
         <Divider dashed />
        <div class="resolved">
            <p class="resolved_title">已解答的问题：2个</p>
            <div class="resolved_text" v-for="(item, index) in issueData" :key="index">
                <p>问：{{item.issue}}</p>
                <p>答：{{item.answer}}</p>
                <Divider />
            </div>
        </div>
    </div>
</template>

<script>
    import titleBack from "../../common/title_back.vue"
    export default {
        components: {
            titleBack
        },
        data() {
            return {
                unsolved: [
                    {
                        issue: "考试需要带2B铅笔吗？"
                    },
                    {
                        issue: "考试需要带2B铅笔吗？"
                    },
                    {
                        issue: "考试需要带2B铅笔吗？"
                    }
                ],
                issueData: [
                    {
                        issue: "考试需要带2B铅笔吗？",
                        answer: "需要"
                    },
                    {
                        issue: "考试需要带2B铅笔吗？",
                        answer: "不需要"
                    }
                ]
            }
        }
    }
</script>

<style lang="less" scoped>
.Q_Asession {
    padding: 0 15px;
    font-size: 16px;
    .unsolved {
        padding: 15px;
        .unsolved_title {
            margin-bottom: 10px;
        }
        .unsolved_text {
            height: 36px;
            line-height: 36px;
            justify-content: space-between;
            border-bottom: 1px solid #ccc;
            button {
                height: 25px;
                line-height: 25px;
                font-size: 14px;
                width: 100px;
                margin-left: 15px;
            }
        }
    }
    .resolved {
        padding: 15px;
        .resolved_title {
            margin-bottom: 10px;
        }
    }
}
</style>